import request from "../utils/request";

// 获取作品分类
export const getCategories = () => {
  return request.get('/categories');
}

// 获取技术栈列表
export const getTechStacks = () => {
  return request.get('/tech-stacks');
}

// 获取平台列表
export const getPlatforms = () => {
  return request.get('/platforms');
}

// 获取所有作品（支持分页、筛选）
export const getProducts = (params) => {
  return request.get('/products', params);
}